﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000CFD RID: 3325
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class PlayerAssistInfo : IMessage<PlayerAssistInfo>, IMessage, IEquatable<PlayerAssistInfo>, IDeepCloneable<PlayerAssistInfo>, IBufferMessage
	{
		// Token: 0x170029DC RID: 10716
		// (get) Token: 0x0600948B RID: 38027 RVA: 0x0018A8F7 File Offset: 0x00188AF7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<PlayerAssistInfo> Parser
		{
			get
			{
				return PlayerAssistInfo._parser;
			}
		}

		// Token: 0x170029DD RID: 10717
		// (get) Token: 0x0600948C RID: 38028 RVA: 0x0018A8FE File Offset: 0x00188AFE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return PlayerAssistInfoReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170029DE RID: 10718
		// (get) Token: 0x0600948D RID: 38029 RVA: 0x0018A910 File Offset: 0x00188B10
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return PlayerAssistInfo.Descriptor;
			}
		}

		// Token: 0x0600948E RID: 38030 RVA: 0x0018A917 File Offset: 0x00188B17
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public PlayerAssistInfo()
		{
		}

		// Token: 0x0600948F RID: 38031 RVA: 0x0018A920 File Offset: 0x00188B20
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public PlayerAssistInfo(PlayerAssistInfo other) : this()
		{
			this.playerInfo_ = ((other.playerInfo_ != null) ? other.playerInfo_.Clone() : null);
			this.assistAvatar_ = ((other.assistAvatar_ != null) ? other.assistAvatar_.Clone() : null);
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06009490 RID: 38032 RVA: 0x0018A97C File Offset: 0x00188B7C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public PlayerAssistInfo Clone()
		{
			return new PlayerAssistInfo(this);
		}

		// Token: 0x170029DF RID: 10719
		// (get) Token: 0x06009491 RID: 38033 RVA: 0x0018A984 File Offset: 0x00188B84
		// (set) Token: 0x06009492 RID: 38034 RVA: 0x0018A98C File Offset: 0x00188B8C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public PlayerSimpleInfo PlayerInfo
		{
			get
			{
				return this.playerInfo_;
			}
			set
			{
				this.playerInfo_ = value;
			}
		}

		// Token: 0x170029E0 RID: 10720
		// (get) Token: 0x06009493 RID: 38035 RVA: 0x0018A995 File Offset: 0x00188B95
		// (set) Token: 0x06009494 RID: 38036 RVA: 0x0018A99D File Offset: 0x00188B9D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public DisplayAvatarDetailInfo AssistAvatar
		{
			get
			{
				return this.assistAvatar_;
			}
			set
			{
				this.assistAvatar_ = value;
			}
		}

		// Token: 0x06009495 RID: 38037 RVA: 0x0018A9A6 File Offset: 0x00188BA6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as PlayerAssistInfo);
		}

		// Token: 0x06009496 RID: 38038 RVA: 0x0018A9B4 File Offset: 0x00188BB4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(PlayerAssistInfo other)
		{
			return other != null && (other == this || (object.Equals(this.PlayerInfo, other.PlayerInfo) && object.Equals(this.AssistAvatar, other.AssistAvatar) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06009497 RID: 38039 RVA: 0x0018AA08 File Offset: 0x00188C08
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.playerInfo_ != null)
			{
				num ^= this.PlayerInfo.GetHashCode();
			}
			if (this.assistAvatar_ != null)
			{
				num ^= this.AssistAvatar.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06009498 RID: 38040 RVA: 0x0018AA5A File Offset: 0x00188C5A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06009499 RID: 38041 RVA: 0x0018AA62 File Offset: 0x00188C62
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600949A RID: 38042 RVA: 0x0018AA6C File Offset: 0x00188C6C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.assistAvatar_ != null)
			{
				output.WriteRawTag(50);
				output.WriteMessage(this.AssistAvatar);
			}
			if (this.playerInfo_ != null)
			{
				output.WriteRawTag(90);
				output.WriteMessage(this.PlayerInfo);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600949B RID: 38043 RVA: 0x0018AAC8 File Offset: 0x00188CC8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.playerInfo_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.PlayerInfo);
			}
			if (this.assistAvatar_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.AssistAvatar);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600949C RID: 38044 RVA: 0x0018AB20 File Offset: 0x00188D20
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(PlayerAssistInfo other)
		{
			if (other == null)
			{
				return;
			}
			if (other.playerInfo_ != null)
			{
				if (this.playerInfo_ == null)
				{
					this.PlayerInfo = new PlayerSimpleInfo();
				}
				this.PlayerInfo.MergeFrom(other.PlayerInfo);
			}
			if (other.assistAvatar_ != null)
			{
				if (this.assistAvatar_ == null)
				{
					this.AssistAvatar = new DisplayAvatarDetailInfo();
				}
				this.AssistAvatar.MergeFrom(other.AssistAvatar);
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600949D RID: 38045 RVA: 0x0018ABA0 File Offset: 0x00188DA0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600949E RID: 38046 RVA: 0x0018ABAC File Offset: 0x00188DAC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 50U)
				{
					if (num != 90U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						if (this.playerInfo_ == null)
						{
							this.PlayerInfo = new PlayerSimpleInfo();
						}
						input.ReadMessage(this.PlayerInfo);
					}
				}
				else
				{
					if (this.assistAvatar_ == null)
					{
						this.AssistAvatar = new DisplayAvatarDetailInfo();
					}
					input.ReadMessage(this.AssistAvatar);
				}
			}
		}

		// Token: 0x040038C2 RID: 14530
		private static readonly MessageParser<PlayerAssistInfo> _parser = new MessageParser<PlayerAssistInfo>(() => new PlayerAssistInfo());

		// Token: 0x040038C3 RID: 14531
		private UnknownFieldSet _unknownFields;

		// Token: 0x040038C4 RID: 14532
		public const int PlayerInfoFieldNumber = 11;

		// Token: 0x040038C5 RID: 14533
		private PlayerSimpleInfo playerInfo_;

		// Token: 0x040038C6 RID: 14534
		public const int AssistAvatarFieldNumber = 6;

		// Token: 0x040038C7 RID: 14535
		private DisplayAvatarDetailInfo assistAvatar_;
	}
}
